package com.zhc.dejingapi.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhc.dejingapi.entity.QingBoilingsendworkEntity;
import com.zhc.dejingapi.entity.query.BoilingQuery;
import com.zhc.dejingapi.mapper.QingBoilingsendworkMapper;
import com.zhc.dejingapi.service.QingBoilingsendworkService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 水处理派工单 服务实现类
 * </p>
 *
 * @author zhc
 * @since 2024-10-11
 */
@Service
public class QingBoilingsendworkServiceImpl extends ServiceImpl<QingBoilingsendworkMapper, QingBoilingsendworkEntity> implements QingBoilingsendworkService {

    @Resource
    private QingBoilingsendworkMapper qingBoilingsendworkMapper;

    @Override
    public QingBoilingsendworkEntity getBoiling(BoilingQuery boilingQuery) {
        QueryWrapper<QingBoilingsendworkEntity> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("boiling_box_code",boilingQuery.getBoilingBoxCode());
        queryWrapper.eq("boiling_frame_code",boilingQuery.getBoilingFrameCode());
        queryWrapper.eq("boiling_status","启动");
        QingBoilingsendworkEntity qingBoilingsendworkEntity = qingBoilingsendworkMapper.selectOne(queryWrapper);
        return qingBoilingsendworkEntity;
    }
}
